package com.cabal.job;

import com.cabal.exchange.service.ItemExchangeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Slf4j
public class ItemSendEveryDayJob {

	@Resource
	private ItemExchangeService itemExchangeService;


	@Scheduled(cron="0 0 0 * * ?")
	public void  itemSendEveryDay() {
		log.info("每天0点整发送副本卡定时任务开始......");
		itemExchangeService.itemSendEveryDay();
		log.info("每天0点整发送副本卡定时任务结束......");
	}
}